from HTMLTestRunner import HTMLTestRunner
import unittest
import os

unit = unittest.defaultTestLoader.discover(os.getcwd(),pattern="Test*.py")

runner = HTMLTestRunner.HTMLTestRunner(
    title="登录Login测试报告",
    description="四组用户密码登录成功与失败",
    verbosity=1,
    stream=open(file="Login.html",mode="w+",encoding="utf8")
)

runner.run(unit)